package com.lans.binary;

import java.util.Arrays;

/**
 * @author: lans
 * @date: 2025/2/28
 * @name: 刘宇
 */
public class TestHeap {
    public static void main(String[] args) {
//        Heap<String> tHeap = new Heap<>(20);
//        tHeap.insert("5");
//        tHeap.insert("!");
//        tHeap.insert("G");
//        tHeap.insert("B");
//        tHeap.insert("T");
//        tHeap.insert("C");
//        tHeap.insert("7");
//        tHeap.insert("9");
//        tHeap.insert("2");
//        String del;
//        while((del = tHeap.delMax())!=null){
//            System.out.println("删除的元素"+del);
//        }
        String[] arrays = {"s","v","c","a","t","n","h","l",};
        HeapSort.sort(arrays);
        System.out.println(Arrays.toString(arrays));
    }
}